package com.cet.designpatterns.bridge;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-08 23:12
 **/
public class UpRightPhone extends Phone {

    public UpRightPhone(Brand brand) {
        super(brand);
    }

    @Override
    public void open() {
        System.out.println("直立式手机");
        brand.open();
    }

    @Override
    public void close() {
        System.out.println("直立式手机");
        brand.close();
    }

    @Override
    public void call() {
        System.out.println("直立式手机");
        brand.call();
    }
}
